package com.example.springbootdemo.scene.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 *@author xuwangqi
 *@date 2021/5/24 15:58
 **/
/**
    * 用户内容
    */
@ApiModel(value="com-example-springbootdemo-scene-entity-Timeline")
@Data
@TableName(value = "timeline")
public class Timeline {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 会员id
     */
    @TableField(value = "member_id")
    @ApiModelProperty(value="会员id")
    private Long memberId;

    /**
     * 会员昵称
     */
    @TableField(value = "nickname")
    @ApiModelProperty(value="会员昵称")
    private String nickname;

    /**
     * 会员头像
     */
    @TableField(value = "avatar")
    @ApiModelProperty(value="会员头像")
    private String avatar;

    /**
     * 景区id
     */
    @TableField(value = "scene_id")
    @ApiModelProperty(value="景区id")
    private String sceneId;

    /**
     * 景区名称
     */
    @TableField(value = "scene_name")
    @ApiModelProperty(value="景区名称")
    private String sceneName;

    /**
     * 景点id
     */
    @TableField(value = "spot_id")
    @ApiModelProperty(value="景点id")
    private String spotId;

    /**
     * 景点名称
     */
    @TableField(value = "spot_name")
    @ApiModelProperty(value="景点名称")
    private String spotName;

    /**
     * 动态类型，1 图文，2视频
     */
    @TableField(value = "type")
    @ApiModelProperty(value="动态类型，1 图文，2视频")
    private String type;

    /**
     * 媒体，图片支持多张逗号隔开，视频只支持一条
     */
    @TableField(value = "media")
    @ApiModelProperty(value="媒体，图片支持多张逗号隔开，视频只支持一条")
    private String media;

    /**
     * 点赞数量
     */
    @TableField(value = "like_num")
    @ApiModelProperty(value="点赞数量")
    private Integer likeNum;

    /**
     * 文字内容
     */
    @TableField(value = "text")
    @ApiModelProperty(value="文字内容")
    private String text;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    /**
     * 状态，0正常 1审核中, 2审核失败
     */
    @TableField(value = "status")
    @ApiModelProperty(value="状态，0正常 1审核中, 2审核失败")
    private Byte status;

    /**
     * 是否删除，1删除，0正常
     */
    @TableField(value = "is_deleted")
    @ApiModelProperty(value="是否删除，1删除，0正常")
    private Byte isDeleted;

    public static final String COL_ID = "id";

    public static final String COL_MEMBER_ID = "member_id";

    public static final String COL_NICKNAME = "nickname";

    public static final String COL_AVATAR = "avatar";

    public static final String COL_SCENE_ID = "scene_id";

    public static final String COL_SCENE_NAME = "scene_name";

    public static final String COL_SPOT_ID = "spot_id";

    public static final String COL_SPOT_NAME = "spot_name";

    public static final String COL_TYPE = "type";

    public static final String COL_MEDIA = "media";

    public static final String COL_LIKE_NUM = "like_num";

    public static final String COL_TEXT = "text";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_STATUS = "status";

    public static final String COL_IS_DELETED = "is_deleted";
}